import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

// 分类表
@Entity()
export class Category {
  @PrimaryGeneratedColumn()
  id: number;

  // 分类名称
  @Column({ type: "varchar", name: "name", default: "" })
  name: string;

  // 分类排序
  @Column({ type: "int", name: "sort", default: 1 })
  sort: number;

  @Column()
  create_time: Date;

  @Column()
  updated_time: Date;
}
